<template>
  <div id="app">
    <router-view v-if="isRouterAlive"/>
  </div>
</template>

<style lang="scss">
  body,html{
    margin: 0;
    padding:0
  }
</style>

<script>
export default {
  provide(){
    return {
      reload:this.reload
    }
  },
  data() {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    reload() {
      this.isRouterAlive = false
      this.$nextTick( _=>{
        this.isRouterAlive = true
      })
    }
  },
}
</script>